<?php

/*
 * Блоки приложения
 */

namespace APPS\PAGES\CONTROLLERS\BLOCKS;

use APPS\PAGES\MODELS\Page as PageModel;

class Pages extends \T4\Controller {
    
    public function actionPage() {

        $url = $this->parameters->url;
	$page = PageModel::findOneByURL($url);

	if ( empty($page) ) {
            return;
	}
	
	$this->output->page = $page;

    }
    
}